package com.e_manager.soft.emanager.idao;

import com.e_manager.soft.emanager.entity.Equipment;

/**
 * @author : lip[lip4051@163.com]
 * @create : 2018/3/22 0022 上午 10:06
 */
public interface EquipmentDao {
    /**
     * 插入设备
     * @param equipment
     */
    void insertEquipment(Equipment equipment);

    /**
     * 更新设备
     * @param equipment
     */
    void updateEquipment(Equipment equipment);

    /**
     * 删除设备
     * @param equipment
     */
    void deleteEquipment(Equipment equipment);

    /**
     * 根据id查询设备
     * @param id
     * @return
     */
    Equipment getEquipmentById(String id);

    /**
     * 更新设备名称
     * @param equipment
     */
    void updateEquipmentName(Equipment equipment);

    /**
     * 删除设备
     * @param equipment
     */
    void deleteEquipmentName(Equipment equipment);

}
